package com.yanqu.road.entity.activity.twins.config;

import com.yanqu.road.utils.string.StringUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class TwinsNpcConfig {

    int id;
    String ordinaryKungfu;
    String coreKungfu;
    int anger;
    int icon;

    //功法id，功法等级，骰子随机上限修正值
    List<List<Integer>> ordinaryKungfuList;
    List<List<Integer>> coreKungfuList;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrdinaryKungfu() {
        return ordinaryKungfu;
    }

    public void setOrdinaryKungfu(String ordinaryKungfu) {
        this.ordinaryKungfu = ordinaryKungfu;
        List<String> tempStringList = StringUtils.stringToStringList(ordinaryKungfu,"\\|");
        ordinaryKungfuList = new ArrayList<>();
        for(String tempString : tempStringList){
             List<Integer> kungFuList = StringUtils.stringToIntegerList(tempString,";");
            ordinaryKungfuList.add(kungFuList);
        }
    }

    public String getCoreKungfu() {
        return coreKungfu;
    }

    public void setCoreKungfu(String coreKungfu) {
        this.coreKungfu = coreKungfu;
        coreKungfuList = new ArrayList<>();
        if(coreKungfu.equals("0")){
            return;
        }
        List<String> tempStringList = StringUtils.stringToStringList(coreKungfu,"\\|");
        for(String tempString : tempStringList){
            List<Integer> kungFuList = StringUtils.stringToIntegerList(tempString,";");
            coreKungfuList.add(kungFuList);
        }
    }

    public int getAnger() {
        return anger;
    }

    public void setAnger(int anger) {
        this.anger = anger;
    }


    public List<List<Integer>> getOrdinaryKungfuList() {
        return ordinaryKungfuList;
    }

    public List<List<Integer>> getCoreKungfuList() {
        return coreKungfuList;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

}
